#!/bin/bash
current_dir=`pwd`
if which apt-get &> /dev/null; then
echo "apt-get detected!"
echo "-------AUTO-INSTALL DEPENDENCIES FROM REPOSITORY------"
sudo apt-get install python subversion python-svn sqlite3 evolution python3-bsddb3 apache2 libapache2-mod-python python-django inotify-tools
fi


echo "--------INSTALLING AND CONFIGURING VSYNC-----------"
vsync stop 2> /dev/null
cd ./versionSync
python ./setup.py install --record .vsync.txt

echo "---------INSTALLING DEPENDENCIES PACKAGES-----------"
cd ./import
cd ./iCalendar-1.2
python ./setup.py install --record .icalendar.txt
cd $current_dir
